package com.dianping.cat.home.utilization.entity;

import com.dianping.cat.home.utilization.BaseEntity;
import com.dianping.cat.home.utilization.IVisitor;








public class MachineState
  extends BaseEntity<MachineState>
{
  private String m_id;
  private long m_count;
  private double m_sum;
  private double m_avg;
  private double m_avgMax;

  public MachineState() {}

  public MachineState(String id) { this.m_id = id; }




  public void accept(IVisitor visitor) { visitor.visitMachineState(this); }



  public boolean equals(Object obj) {
/*  34 */     if (obj instanceof MachineState) {
/*  35 */       MachineState _o = (MachineState)obj;

/*  37 */       if (!equals(getId(), _o.getId())) {
/*  38 */         return false;
      }

/*  41 */       return true;
    }

/*  44 */     return false;
  }


/*  48 */   public double getAvg() { return this.m_avg; }



/*  52 */   public double getAvgMax() { return this.m_avgMax; }



/*  56 */   public long getCount() { return this.m_count; }



/*  60 */   public String getId() { return this.m_id; }



/*  64 */   public double getSum() { return this.m_sum; }



  public int hashCode() {
/*  69 */     int hash = 0;

/*  71 */     return hash * 31 + ((this.m_id == null) ? 0 : this.m_id.hashCode());
  }




  public void mergeAttributes(MachineState other) {
    assertAttributeEquals(other, "machineState", "id", this.m_id, other.getId());

/*  80 */     this.m_count = other.getCount();

/*  82 */     this.m_sum = other.getSum();

/*  84 */     this.m_avg = other.getAvg();

/*  86 */     this.m_avgMax = other.getAvgMax();
  }

  public MachineState setAvg(double avg) {
/*  90 */     this.m_avg = avg;
/*  91 */     return this;
  }

  public MachineState setAvgMax(double avgMax) {
    this.m_avgMax = avgMax;
/*  96 */     return this;
  }

  public MachineState setCount(long count) {
/* 100 */     this.m_count = count;
/* 101 */     return this;
  }

  public MachineState setId(String id) {
/* 105 */     this.m_id = id;
/* 106 */     return this;
  }

  public MachineState setSum(double sum) {
/* 110 */     this.m_sum = sum;
/* 111 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/utilization/entity/MachineState.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */